package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 文件资源表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-07-12
 */
@TableName("pf_file")
public class PfFile extends Model<PfFile> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "file_id", type = IdType.AUTO)
    private Long fileId;
    /**
     * 名称
     */
    private String name;
    /**
     * 目标id
     */
    @TableField("target_id")
    private String targetId;
    /**
     * 类型：1-图片；2-视屏；3-音频；4-文件
     */
    private Integer type;
    /**
     * 子类型:1-广告图片；2-调查问卷；3-奖品图片；4-答案图片；5-新闻图片；6-礼券;10-系统图片；
     */
    private Integer subtype;
    /**
     * app文件子类型:1-头像；2-身份证；3-营业执照；4-广告；
     */
    @TableField("app_subtype")
    private Integer appSubtype;
    /**
     * 文件域
     */
    @TableField("bucket_name")
    private String bucketName;
    /**
     * 文件子目录
     */
    @TableField("object_name")
    private Integer objectName;
    /**
     * 路径
     */
    @TableField("file_url")
    private String fileUrl;
    /**
     * 状态：1-待使用；2-使用中；3-发布中；
     */
    private Integer status;
    /**
     * 大小
     */
    private String size;
    /**
     * 时长
     */
    private String time;
    /**
     * 宽度
     */
    private Double width;
    /**
     * 长度
     */
    private Double length;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 上传类型：1-后台上传；2-ios上传;3-android
     */
    @TableField("upload_type")
    private Integer uploadType;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 创建者id
     */
    @TableField("modifier_id")
    private Integer modifierId;
    /**
     * 创建者姓名
     */
    @TableField("modifier_name")
    private String modifierName;


    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    public Integer getAppSubtype() {
        return appSubtype;
    }

    public void setAppSubtype(Integer appSubtype) {
        this.appSubtype = appSubtype;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public Integer getObjectName() {
        return objectName;
    }

    public void setObjectName(Integer objectName) {
        this.objectName = objectName;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Double getWidth() {
        return width;
    }

    public void setWidth(Double width) {
        this.width = width;
    }

    public Double getLength() {
        return length;
    }

    public void setLength(Double length) {
        this.length = length;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getUploadType() {
        return uploadType;
    }

    public void setUploadType(Integer uploadType) {
        this.uploadType = uploadType;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Integer getModifierId() {
        return modifierId;
    }

    public void setModifierId(Integer modifierId) {
        this.modifierId = modifierId;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    @Override
    protected Serializable pkVal() {
        return this.fileId;
    }

    @Override
    public String toString() {
        return "PfFile{" +
        "fileId=" + fileId +
        ", name=" + name +
        ", targetId=" + targetId +
        ", type=" + type +
        ", subtype=" + subtype +
        ", appSubtype=" + appSubtype +
        ", bucketName=" + bucketName +
        ", objectName=" + objectName +
        ", fileUrl=" + fileUrl +
        ", status=" + status +
        ", size=" + size +
        ", time=" + time +
        ", width=" + width +
        ", length=" + length +
        ", createTime=" + createTime +
        ", remark=" + remark +
        ", uploadType=" + uploadType +
        ", userCode=" + userCode +
        ", modifierId=" + modifierId +
        ", modifierName=" + modifierName +
        "}";
    }
}
